package org.finmanager.budget;

import org.finmanager.core.Category;

import java.util.GregorianCalendar;

/**
 * Created by Kelvin on 4/4/2014.
 */

//This is the BUDGET item class
//Each budget has 1.category 
//                2.total budget amount
//                3.remaining amount
//                4.valid period (count per month)
public class Budget {
	private Category category;
	private Double amount;
	private Double remaining;
	private GregorianCalendar date;

	public Budget(Category category, Double amount, Double remaining, int year, int month) {
		this.category = category;
		this.amount = amount;
		this.remaining = remaining;
		this.date = new GregorianCalendar(year, month, 1);
	}

	public Category getCategory() {
		return category;
	}

	public Double getAmount() {
		return amount;
	}

	public Double getRemaining() {
		return remaining;
	}

	public GregorianCalendar getDate() {
		return date;
	}

	public void setRemaining(Double remaining) {
		this.remaining = remaining;
	}
}
